package com.kuqi.service;

import com.kuqi.domain.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:kuqi
 * @createTime:2021/10/22 21:35
 * @description:
 */
public interface BookService {

    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(@Param("bookId") int id);

    //修改一本书
    int updateBook(Books books);

    //查询一本书
    Books queryBooksById(@Param("bookId") int id);

    //查询全部的书
    List<Books> queryAllBook();
}
